dd.template({
    parent: {
        fn: {
            template: function()
            {
                var a = arguments;
                var e = this.self.e;
                if(typeof(a[0]) == "string")
                {
                    this.self.template = a;
                }
                else if(typeof(a[0]) == "number" && a.length > 1)
                {
                    this.self.template[a[0] +  1] = a[1];
                }
                else
                {
                    return this.self.template[a[0] + 1];
                }
                var s = this.self.template[0];
                for(var i = 0; i <= this.self.template.length; i++)
                {
                    s = s.replace("{" + i + "}", this.self.template[i + 1]);
                }
                dd(this).text(s);
                return this.self.template[0];
            }
        }
    }
});